<%-- 
    Document   : PersonInfo
    Created on : 2014-5-29, 12:41:01
    Author     : Administrator
--%>

<%@page import="beans.User"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>个人信息</title>
    </head>
    <body>
        <h1>用户资料</h1>
        <% User user = (User)request.getSession().getAttribute("user");
        %>
        Name:<%=user.getName()%>
        <br/>
        ID:<%=user.getId()%>
        <br/>
        <% 
        if(user.getSex().equals("1")) { %>
        Sex: 男
        <%} else { %>
            Sex:女
        <%}%>
        <br/>
        Major:<%=user.getMajor()%>
        <br/>
        Class:<%=user.getClas()%>
        <br/>
        QQ:<%=user.getQQ()%>
        <br/>
        Tel:<%=user.getTelephone()%>
        <br/>
        Address:<%=user.getAdd()%>
        <br/>
        E-mail:<%=user.getEmail()%>
        <form action="ChangeInfo.jsp" method="post">
            <input type="submit" value="修改信息" />
        </form>
        
    </body>
</html>
